package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.core.entity.FBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "WMS_SplitMergeSub", description = "条码拆合子表")
@TableName(value = "WMS_SplitMergeSub")
public class WmsSplitMergeSub extends FBaseEntity implements Serializable {


    
    @ApiModelProperty("条码拆合主表ID")
    @TableField(value = "mainID")
    private Long mainID;
    
    @ApiModelProperty("子表行号")
    @TableField(value = "subID")
    private Long subID;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("拆分后条码或合并条码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "barCode")
    private String barCode;
    
    @ApiModelProperty("物料Id")
    @TableField(value = "materialId")
    private Long materialId;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("拆分后条码批次或合并条码批次")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "batchNum")
    private String batchNum;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("条码数量")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "hQty")
    private String hQty;
    
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("备注")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "remark")
    private String remark;
    
    @ApiModelProperty("条码库位")
    @TableField(value = "areaID")
    private Long areaID;






}

